package com.itheima.api_demo.string_demo;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
//        String s = "33 22 11 55 44";
//
//        String[] strs = s.split(" ");
//
//        System.out.println(Arrays.toString(strs));// [33, 22, 11, 55, 44]

//        String s = "33.22.11.55.44";
        String s = "33+22+11+55+44";

        String[] strs = s.split("\\+");

        System.out.println(Arrays.toString(strs));// []
    }
}
